package com.jboost.modules.app.service.strategry.newxihui;

import com.google.common.collect.Maps;
import com.jboost.common.util.EncryptSha256Util;
import com.jboost.common.util.HttpRestUtils;
import com.jboost.common.util.JSONUtil;
import com.jboost.common.util.RedisUtil;
import com.jboost.modules.app.constant.Strategy;
import com.jboost.modules.system.mapper.GcDataMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.http.HttpHeaders;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.Base64;
import java.util.HashMap;

@Service
@Slf4j
public abstract class AbstractXmAllureUser<T, V> implements Strategy<T,V> {
    @Autowired
    protected RedisUtil redisUtil;

    String lvPriceUrl
            = "https://market.cnal.com/share/market/nh30.json";
    String huilvUrl
            = "https://www.cgbchina.com.cn/searchExchangePrice.gsp";
    protected HttpHeaders jdyHeaders;
    {
        jdyHeaders = new HttpHeaders();
        jdyHeaders.set("Authorization","Bearer "+ "v3mxymb4mv0crMagdSc8JLa2iki4ZIWM");

    }


    public void run(ApplicationArguments args) throws Exception {
      invokeStrategy();
    }

   public HttpHeaders getJdyHeaders(){
        return jdyHeaders;
    }

}
